package demo22;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int gcd = gcd(a,b);
        long result = (long)a*b/gcd;
        System.out.println(result);
    }

    private static int gcd(int a, int b) {
        while (b!=0){
            int tmp = b;
            b = a % b;
            a = tmp;
        }
        return a;
    }
}
